package com.yan.domain;

public class Programmer extends Employee {
    public String language = "java";

    public Programmer() {

    }

    public Programmer(String id, String name, int age, int salary, String language) {
        super(id, name, age, salary);
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public void getInfo(){
        System.out.println("编号\t姓名\t年龄\t薪资\t编程语言\t");
        System.out.println(id + "\t\t" + name + "\t\t" + age + "\t\t" + salary + "\t\t" + language);
    }
}
